/**
* \file UDPSocket.cpp
* \brief UDPSocket definition class
* \author Edouard ROGE
* \date 12 Novembre 2013
*/

#include "UDPSocket.h"

UDPSocket::UDPSocket()
{
	m_iDescriptor = socket(AF_INET, SOCK_DGRAM, 0);
}

UDPSocket::~UDPSocket()
{
	Close();
}

void UDPSocket::Send(void * _pBuffer, uint32 _iSize)
{
	//sendto(m_iDescriptor, (char*)_pBuffer, _iSize, 0);
}

void UDPSocket::Receive(void * _pBuffer, uint32 _iSize)
{
	//recvfrom(m_iDescriptor, (char*)_pBuffer, _iSize, 0);
}

void UDPSocket::Close()
{
	closesocket(m_iDescriptor);
}